"""
1、点击   click()
2、输入 send_keys() (僧的 k)
3、清空  clear
"""

import time

from selenium import webdriver
from selenium.webdriver.common.by import By

# 创建浏览器驱动对象
driver = webdriver.Edge()
# 打开页面
driver.get("http://localhost:8081/regA.html")
# 定位账户
ele=driver.find_element(By.CSS_SELECTOR,"#h1")
ele.send_keys("admin")
time.sleep(2)
ele.clear()  #清空

time.sleep(10)

driver.quit()